<extend name="Public/base"/>
<block name="nav">
  <ul class="nav nav-tabs" >
    <li  class="active" > <a  href="">{$menu_title|default="首页"}</a> </li>
    <li  > <a  href="{:U("add",array("catid"=>$_GET['catid']))}">添加广告</a> </li>
    <li  > <a class="" href="__URL__">返回</a></li>
  </ul>
</block>
<block name="body">
  <form method="post" class="J_ajaxForm" action="{:U('listorders')}">
    <div class="table_list">
      <table width="100%" class="table table-hover">
        <thead>
          <tr>
            <th width="50">排序</th>
            <th width="50">ID</th>
            <th>标题</th>
            <th>分类</th>
            <th> <in name="type" value="imgs,img"> 图片
                <else/>
                简介 </in></th>
            <th>状态</th>
            <th width="320">操作</th>
          </tr>
        </thead>
        <tbody>
          <foreach name="list" item="vo">
            <tr>
             <td><input name='listorders[{$vo.id}]' class="input input-order"  type='text' size='3' value='{$vo.listorder}'></td>
              <td>{$vo.id}</td>
              <td>{$vo.title}</td>
              <td>{$catname}</td>
              <td><in name="type" value="imgs,img"> <a  href="{$vo.thumb}" class="fancybox" rel="thumb">{$vo.thumb}</a>
                  <else/>
                  {$vo.desc}> </in></td
                 
                      >
              <td><if condition="$vo[status] eq 1"> <a href="{:U("changestatus",array("id"=>$vo['id']))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
                  <else/>
                  <a href="{:U("changestatus",array("id"=>$vo['id']))}"  class="ajax-switch"><i class="icon-times-circle"></i></a> </if></td>
              <td><a href="{:U('edit',array('id'=>$vo['id']))}" >修改</a>| <a href="{:U('delete',array('id'=>$vo['id']))}" class="ajax-del" >删除</a></td>
            </tr>
          </foreach>
        </tbody>
      </table>
    </div>
     <div class="form-actions">
     <button class="btn btn-primary ajax-post mr10" target-form="J_ajaxForm" type="submit"> 排序</button>
         <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        
      </div>
  </form>
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 
</block>
